<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>监督管理下的药品信息维护</title>
        <style type="text/css">
            td{
                height: 25px;
                width: 100px;
                border: #3a8ee6 1px solid;

            }
            input{
                height: 21px;
            }
        </style>
        <script type="text/javascript" src="../../js/jquery-3.3.1.js"></script>
        <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
        <script type="text/javascript" src="../../js/01/daoru/drugb/findAll.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/drugb/feny.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/drugb/cengci.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/drugb/findOne.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/daoru.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/finddiName.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/price.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/findspName.js"></script>
        <script type="text/javascript" src="../../js/01/daoru/findLSNumer.js"></script>
        <script type="text/javascript">
            $(function () {
                gets()
                //查询所有药品类别
                $.ajax({
                    url:"/myspringboot/DrugCategoryController/fandAllDrugCategory",
                    data:"",
                    type:"post",
                    dataType:"json",
                    success:function(result){
                        console.log(result);
                        var result = result.data;
                        var opts = "";
                        for (var i = 0; i < result.length; i++) {
                            var dcId = result[i].dcId;
                            var dcName = result[i].dcName;
                            var opt = '<option value="'+dcId+'">'+dcName+'</option>';
                            opts += opt;
                        }
                        $(".b").append(opts);
                    }
                })
            })
        </script>
        <script type="text/javascript">
            function  add() {
                $.ajax({
                    url: '/myspringboot/DrugInformationController/insertDrugInformation',
                    type: 'POST',
                    dataType: "json",
                    data:$("#update11").serialize(),//form表单序列化
                    success:function (result) {
                        alert(result.msg)
                        window.location.href="drug02.html"
                    }
                })
            }
            //根据id回显药品信息
            function selectById(diId) {
                $.ajax({
                    url: "/myspringboot/selectDrugInformationById",
                    data: {
                        diId: diId,
                    },
                    type: "post",
                    dataType: "json",
                    success: function (result) {
                        var result = result.data;
                        $("#diNumer").val(result.diNumer);
                        $("#diName").val(result.diName);
                        $("#diForm").val(result.diForm);
                        $("#diSpecifications").val(result.diSpecifications);
                        $("#diUnit").val(result.diUnit);
                        $("#diCc").val(result.diCc);
                        $("#mfName").val(result.manufacturer.mfName);
                        $("#daName").val(result.drugAtegory.daName);
                        $("#diBiddingPrice").val(result.diBiddingPrice);
                        $("#diApprovalNumber").val(result.diApprovalNumber);
                        $("#diApprovalTerm").val(result.diApprovalTerm);
                        /*$(".diImportDrugs").val(result.diImportDrugs);*/
                        if(result.diImportDrugs == 0){
                            $("#inspection2").attr("checked","true")
                            $('#inspection2').attr('onClick',"javascript:return false");//单选框回显不可选中
                            $('#inspection3').attr('onClick',"javascript:return false");
                        }else{
                            $("#inspection3").attr("checked","true")
                            $('#inspection3').attr('onClick',"javascript:return false");
                            $('#inspection2').attr('onClick',"javascript:return false");//单选框回显不可选中
                        }
                        $("#diMaterialQuality").val(result.diMaterialQuality);
                        $("#diBunit").val(result.diBunit);
                        $("#diNewPrice").val(result.diNewPrice);
                        $("#diRetailPrice").val(result.diRetailPrice);
                        /*$("#diDqlName").val(result.drugQualityLevel.dqlName);*/
                        var dqlName = null;
                        if(result.drugQualityLevel == null){
                            dqlName = null;
                        }else{
                            $("#diDqlName").val(result.drugQualityLevel.dqlName);
                        }
                        $("#diDqlexplain").val(result.diDqlexplain);
                       // $(".diInspectionReport").val(result.diInspectionReport);
                        if (result.diInspectionReport == 0){
                            $("#inspection").attr("checked","true");
                            $('#inspection').attr('onClick',"javascript:return false");
                            $("#inspection1").attr('onClick',"javascript:return false");
                        }else{
                            $("#inspection1").attr("checked","true");
                            $("#inspection1").attr('onClick',"javascript:return false");
                            $('#inspection').attr('onClick',"javascript:return false");
                        }
                        $("#diInspectionNumber").val(result.diInspectionNumber);
                        $("#diInspectionTerm").val(result.diInspectionTerm);
                        $("#diDescription").val(result.diDescription);
                        $("#diTradingStatus").val(result.diTradingStatus);//0是异常
                        if(result.diTradingStatus == 0){
                            $("#diTradingStatus").val("异常") ;
                        }else{
                            $("#diTradingStatus").val("正常") ;
                        }
                    }
                })
            }

            //修改之前的回显药品信息
            function selectById1(diId) {
                alert(diId)
                $.ajax({
                    url: "/myspringboot/selectDrugInformationById",
                    data: {
                        diId: diId,
                    },
                    type: "post",
                    dataType: "json",
                    success: function (result) {
                        var result = result.data;
                        console.log(result)
                        $("#diNumer1").val(result.diNumer);
                        $("#diId").val(result.diId);
                        $("#daId").val(result.drugAtegory.daId);
                        $("#diName1").val(result.diName);
                        $("#diForm1").val(result.diForm);
                        $("#diSpecifications1").val(result.diSpecifications);
                        $("#diUnit1").val(result.diUnit);
                        $("#diCc1").val(result.diCc);
                        $("#mfName1").val(result.manufacturer.mfId);
                        $("#daName1").val(result.drugAtegory.daName);
                        $("#diBiddingPrice1").val(result.diBiddingPrice);
                        $("#diApprovalNumber1").val(result.diApprovalNumber);
                        $("#diApprovalTerm1").val(result.diApprovalTerm);
                        /*$(".diImportDrugs").val(result.diImportDrugs);*/
                        if(result.diImportDrugs == 0){
                            $("#inspection21").attr("checked","true")
                        }else{
                            $("#inspection31").attr("checked","true")
                        }
                        $("#diMaterialQuality1").val(result.diMaterialQuality);
                        $("#diBunit1").val(result.diBunit);
                        $("#diNewPrice1").val(result.diNewPrice);
                        $("#diRetailPrice1").val(result.diRetailPrice);
                        /*$("#diDqlName1").val(result.drugQualityLevel.dqlId);*/
                        var dqlId = null;
                        if(result.drugQualityLevel == null ){
                            dqlId = null;
                        }else{
                            $("#diDqlName1").val(result.drugQualityLevel.dqlId);
                        }
                        $("#diDqlexplain1").val(result.diDqlexplain);
                        // $(".diInspectionReport").val(result.diInspectionReport);
                        if (result.diInspectionReport == 0){
                            $("#inspection12").attr("checked","true");
                        }else{
                            $("#inspection11").attr("checked","true");
                        }
                        $("#diInspectionNumber1").val(result.diInspectionNumber);
                        $("#diInspectionTerm1").val(result.diInspectionTerm);
                        $("#diDescription1").val(result.diDescription);
                        $("#diTradingStatus1").val(result.diTradingStatus);//0是异常
                        if(result.diTradingStatus == 0){
                            $("#diTradingStatus1").val("0") ;
                        }else{
                            $("#diTradingStatus1").val("1") ;
                        }
                        /*var distate = null;
                        if(result.diTradingStatus == 0){
                            distate = '0'
                        }else{
                            distate = '1'
                        }
                        $("#diTradingStatus1").val(distate);*/
                    }
                })
            }
            //修改药品信息
            /*$.ajax({

            })*/
            function update1(diId) {
                var a =$("#update2").serializeArray();

                $.ajax({
                    url: '/myspringboot/DrugInformationController/updateDrugInformation2',
                    type: 'POST',
                    dataType: "json",
                    data:a,
                    success:function (result) {
                        alert(result.msg)
                        window.location.href="drug02.html"
                    }
                })

            }
        </script>
	</head>
	<body>
    <div>
        <table class="" style="border: 1px solid #999;border-collapse:collapse">
            <tr>
                <h3 style="height: 50px" >药品信息管理</h3>


            </tr>
            <tr>
                <td>药品流水号：</td>
                <td><input id="dinumber" name="dinumber" type="text" value=""></td>
                <td></td>
                <td>通用名：</td>
                <td><input id="cname" name="cname" type="text" value=""></td>
                <td></td>
            </tr>
            <tr>
                <td>剂型：</td>
                <td><input id="jixing" name="jixing" type="text" value=""></td>
                <td></td>
                <td>规格：</td>
                <td><input id="guige" name="guige" type="text" value=""></td>
                <td></td>
            </tr>
            <tr>
                <td>单位：</td>
                <td><input id="danwei" name="danwei" type="text" value=""></td>
                <td></td>
                <td>转换系数：</td>
                <td><input id="cc" name="cc" type="text" value=""></td>
                <td></td>
            </tr>
            <tr>
                <td>生产企业：</td>
                <td><input name="qiye" id="qiye" type="text" value=""></td>
                <td></td>
                <td>商品名：</td>
                <td><input name="shangpin" id="shangpin" type="text" value=""></td>
                <td></td>
            </tr>
            <tr>
                <td>价格范围：</td>
                <td><input id="lefPprice" style="width: 65px" type="text" value="">至<input id="rightPrice" style="width: 65px" type="text" value=""></td>
                <td></td>
                <td>质量层次：</td>
                <td>
                    <select id="cengci" style=" height: 25px; width: 160px;" class="c">
                        <option value="">全部</option>

                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <td>药品类别：</td>
                <td>
                    <select id="dcid" style=" height: 25px; width: 160px;" class="b">
                        <option value="">请选择</option>
                    </select>
                </td>
                <td></td>
                <td style="width: 120px">药品交易状态:</td>
                <td>
                    <select id="state" name="state" style=" height: 25px; width: 160px;">
                        <option value="">全部</option>
                        <option value="1">正常</option>
                        <option value="0">异常</option>

                    </select>
                </td>
                <td></td>
            </tr>


        </table>
        <td>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <button type="reset"  onclick="gets()">查询</button>
            <a href="/myspringboot/DrugInformationController/getExcel1"><button>导出</button></a>
        </td>
        <br>
        <td>
            <a data-toggle="modal" data-target="#tianjia"><button>添加</button></a>
            <button data-toggle="modal" data-target="#myModal">导入</button>
        </td>
        <br>
        <table>
            <tr>
                <td>药品流水号</td>
                <td>通用名</td>
                <td>剂型</td>
                <td>规格</td>
                <td>单位</td>
                <td>转换系数</td>
                <td>生产企业</td>
                <td>商品名称</td>
                <td>中标价</td>
                <td>质量层次</td>
                <td>药品类别</td>
                <td>交易状态</td>
                <td>详细</td>
                <td>修改</td>
                <td>删除</td>
            </tr>
            <tbody class="a">
            </tbody>
        </table>

    </div>
    <div class="im-page" id="impage">
        <tr>
            <td><button id='first'>首页</button></td>
            <td><button id='before'>上一页</button></td>
            <td>第<span id="pnum"></span>页</td>
            <td>共<span id="ptotal"></span>页</td>
            <td><button  id='next'>下一页</button></td>
            <td><button id='last'>尾页</button></td>
        </tr>
    </div>

    <!--添加药品模态框  模态框（Modal） -->
    <div class="modal fade" id="tianjia" tabindex="-1" role="dialog" aria-labelledby="tianjia1" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true">
                    </button>
                    <h4 class="modal-title" id="tianjia1">
                        药品品目添加
                    </h4>
                </div>

                <div class="modal-body">
                    <form id="update11">
                        <table>
                            <!-- 用来存放修改的主键 -->
                            <!--<input type="hidden" id="diId">-->
                            <tr>
                                添加药品信息
                            </tr>
                            <tr>
                                <td>流水号：</td>
                                <td><input type="text" name="diNumer" value="" class="LSNumer" onblur="findLSNumer()"></td>
                            </tr>
                            <tr>
                                <td>通用名：</td>
                                <td><input type="text" value="" name="diName" class="ddName" onblur="finddiName()"></td>
                                <td>剂型：</td>
                                <td><input type="text" value="" name="diForm"></td>
                            </tr>
                            <tr>
                                <td>规格：</td>
                                <td><input type="text" value="" name="diSpecifications"></td>
                                <td>单位：</td>
                                <td><input type="text" value="" name="diUnit"></td>
                            </tr>
                            <tr>
                                <td>转换系数：</td>
                                <td><input type="text" value="" name="diCc"></td>
                                <td>生产企业名称:</td>
                                <td>
                                    <select style=" height: 25px; width: 160px;" name="diMfId" class="d">
                                        <option value="">请选择</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>商品名：</td>
                                <td><input type="text" value="" name="daName" class="spName" onblur="findspName()"></td>
                                <td>中标价格:</td>
                                <td><input type="text" value="" name="diBiddingPrice"></td>
                            </tr>
                            <tr>
                                <td>批注文号：</td>
                                <td><input type="text" value="" name="diApprovalNumber"></td>
                                <td>批准文号有效期:</td>
                                <td><input type="text" value="" name="diApprovalTerm"></td>
                            </tr>
                            <tr>
                                <td>是否进口药：</td>
                                <td>
                                    <label><input name="diImportDrugs" type="radio" value="0" class="diImportDrugs">是</label>
                                    <label><input name="diImportDrugs" type="radio" value="1" class="diImportDrugs">否</label>
                                </td>
                                <td>包装材质:</td>
                                <td><input type="text" value="" name="diMaterialQuality"></td>
                            </tr>
                            <tr>
                                <td>包装单位：</td>
                                <td><input type="text" value="" name="diBunit"></td>
                                <td>最新零售价:</td>
                                <td><input type="text" value="" name="diNewPrice"></td>
                            </tr>
                            <tr>
                                <td>零售价出处：</td>
                                <td><input type="text" value="" name="diRetailPrice"></td>
                                <td>质量层次:</td>
                                <td>
                                    <select style=" height: 25px; width: 160px;" class="c" name="diDqlName">
                                        <option value="">请选择</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>质量层次说明：</td>
                                <td><input type="text" value="" name="diDqlexplain"></td>
                                <td>有无药品检验报告:</td>
                                <td>
                                    <label><input name="diInspectionReport" type="radio" value="0" class="diInspectionReport">有</label>
                                    <label><input name="diInspectionReport" type="radio" value="1" class="diInspectionReport">无</label>
                                </td>
                            </tr>
                            <tr>
                                <td>药品检验报告编号：</td>
                                <td><input type="text" value="" name="diInspectionNumber"></td>
                                <td>药品检验报告有效期:</td>
                                <td><input type="text" value="" name="diInspectionTerm"></td>
                            </tr>
                            <tr>
                                <td>产品说明:</td>
                                <td colspan="4"><textarea rows="3" cols="60" type="radio" value="" name="diDescription"></textarea></td>
                            </tr>
                            <tr>
                                <td>药品交易状态:</td>
                                <td>
                                    <select style=" height: 25px; width: 160px;" name="diTradingStatus">
                                        <option value="">请选择</option>
                                        <option value="1">正常</option>
                                        <option value="0">异常</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </form>
                    <td>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <button onclick="add()" class="btn btn-primary">提交</button>
                        <button type="button" data-dismiss="modal" class="btn btn-primary">关闭</button>
                    </td>
                </div>
                <div class="modal-footer">
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->




    <!--修改药品信息模态框-->
    <div class="modal fade" id="Update" tabindex="-1" role="dialog" aria-labelledby="Update1" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true">
                    </button>
                    <h4 class="modal-title" id="Update1">
                        编辑药品品目
                    </h4>
                </div>

                <div class="modal-body">
                    <form action="/myspringboot/DrugInformationController/updateDrugInformation2" id="update2">
                        <table>
                            <!-- 用来存放修改的主键 -->
                            <!--<input type="hidden" id="diId">-->
                            <tr>
                                编辑药品信息
                            </tr>
                            <tr>
                                <input name="diId" id="diId" value="" type="hidden">
                                <input name="daId" id="daId" value="" type="hidden">
                                <td>流水号：</td>
                                <td><input type="text" name="diNumer" value="" id="diNumer1" class="LSNumer" onblur="findLSNumer()"></td>
                            </tr>
                            <tr>
                                <td>通用名：</td>
                                <td><input type="text" value="" name="diName" id="diName1" class="ddName" onblur="finddiName()"></td>
                                <td>剂型：</td>
                                <td><input type="text" value="" name="diForm" id="diForm1"></td>
                            </tr>
                            <tr>
                                <td>规格：</td>
                                <td><input type="text" value="" name="diSpecifications" id="diSpecifications1"></td>
                                <td>单位：</td>
                                <td><input type="text" value="" name="diUnit" id="diUnit1"></td>
                            </tr>
                            <tr>
                                <td>转换系数：</td>
                                <td><input type="text" value="" name="diCc" id="diCc1"></td>
                                <td>生产企业名称:</td>
                                <td>
                                    <select style=" height: 25px; width: 160px;" name="diM  fId" id="mfName1" class="d">
                                        <option value="">请选择</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>商品名：</td>
                                <td><input type="text" value="" name="daName" id="daName1" class="spName" onblur="findspName()"></td>
                                <td>中标价格:</td>
                                <td><input type="text" value="" name="diBiddingPrice" id="diBiddingPrice1" ></td>
                            </tr>
                            <tr>
                                <td>批注文号：</td>
                                <td><input type="text" value="" name="diApprovalNumber" id="diApprovalNumber1" ></td>
                                <td>批准文号有效期:</td>
                                <td><input type="text" value="" name="diApprovalTerm" id="diApprovalTerm1" ></td>
                            </tr>
                            <tr>
                                <td>是否进口药：</td>
                                <td>
                                    <label><input name="diImportDrugs"  type="radio" value="0" id="inspection21" class="diImportDrugs">是</label>
                                    <label><input name="diImportDrugs"  type="radio" value="1" id="inspection31" class="diImportDrugs">否</label>
                                </td>
                                <td>包装材质:</td>
                                <td><input type="text" value="" name="diMaterialQuality" id="diMaterialQuality1"></td>
                            </tr>
                            <tr>
                                <td>包装单位：</td>
                                <td><input type="text" value="" name="diBunit" id="diBunit1"></td>
                                <td>最新零售价:</td>
                                <td><input type="text" value="" name="diNewPrice" id="diNewPrice1"></td>
                            </tr>
                            <tr>
                                <td>零售价出处：</td>
                                <td><input type="text" value="" name="diRetailPrice" id="diRetailPrice1"></td>
                                <td>质量层次:</td>
                                <td>
                                    <select style=" height: 25px; width: 160px;" class="c" name="diDqlName" id="diDqlName1">
                                        <option value="">请选择</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>质量层次说明：</td>
                                <td><input type="text" value="" name="diDqlexplain" id="diDqlexplain1"></td>
                                <td>有无药品检验报告:</td>
                                <td>
                                    <label><input name="diInspectionReport" type="radio" value="0" id="inspection12" class="diInspectionReport">有</label>
                                    <label><input name="diInspectionReport" type="radio" value="1" id="inspection11" class="diInspectionReport">无</label>
                                </td>
                            </tr>
                            <tr>
                                <td>药品检验报告编号：</td>
                                <td><input type="text" value="" name="diInspectionNumber" id="diInspectionNumber1"></td>
                                <td>药品检验报告有效期:</td>
                                <td><input type="text" value="" name="diInspectionTerm" id="diInspectionTerm1"></td>
                            </tr>
                            <tr>
                                <td>产品说明:</td>
                                <td colspan="4"><textarea rows="3" cols="60" type="radio" value="" name="diDescription" id="diDescription1"></textarea></td>
                            </tr>
                            <tr>
                                <td>药品交易状态:</td>
                                <td>
                                    <select style=" height: 25px; width: 160px;" name="diTradingStatus" id="diTradingStatus1">
                                        <option type="selected" value="">请选择</option>
                                        <option value="1">正常</option>
                                        <option value="0">异常</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </form>
                    <td>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <button onclick="update1()" class="btn btn-primary">提交</button>
                        <button type="button" data-dismiss="modal" class="btn btn-primary">关闭</button>
                    </td>
                </div>
                <div class="modal-footer">
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->


    <!--查看药品信息模态框  模态框（Modal） -->
    <div class="modal fade" id="Check" tabindex="-1" role="dialog" aria-labelledby="Check1" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true">
                    </button>
                    <h4 class="modal-title" id="Check1">
                        查看药品品目
                    </h4>
                </div>
                <div class="modal-body">
                    <form id="">
                        <table>
                            <!-- 用来存放修改的主键 -->
                            <!--<input type="hidden" id="diId">-->
                            <tr>
                                编辑药品信息
                            </tr>
                            <tr>
                               <!-- <input name="diId" id="diId1" type="hidden">
                                <input name="daId" id="daId1" type="hidden">-->
                                <td>流水号：</td>
                                <td><input type="text" name="diNumer" value="" id="diNumer" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td>通用名：</td>
                                <td><input type="text" value="" name="diName" id="diName" readonly="readonly"></td>
                                <td>剂型：</td>
                                <td><input type="text" value="" name="diForm" id="diForm" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td>规格：</td>
                                <td><input type="text" value="" name="diSpecifications" id="diSpecifications" readonly="readonly"></td>
                                <td>单位：</td>
                                <td><input type="text" value="" name="diUnit" id="diUnit" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td>转换系数：</td>
                                <td><input type="text" value="" name="diCc" id="diCc" readonly="readonly"></td>
                                <td>生产企业名称:</td>
                                <td>
                                    <input style=" height: 25px; width: 160px;" name="mfName" id="mfName" class="d" readonly="readonly">
                                    </input>
                                </td>
                            </tr>
                            <tr>
                                <td>商品名：</td>
                                <td><input type="text" value="" name="daName" id="daName" readonly="readonly"></td>
                                <td>中标价格:</td>
                                <td><input type="text" value="" name="diBiddingPrice" id="diBiddingPrice" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td>批注文号：</td>
                                <td><input type="text" value="" name="diApprovalNumber" id="diApprovalNumber" readonly="readonly"></td>
                                <td>批准文号有效期:</td>
                                <td><input type="text" value="" name="diApprovalTerm" id="diApprovalTerm" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td>是否进口药：</td>
                                <td>
                                    <label><input name="diImportDrugs"  type="radio" value="0" id="inspection2" class="diImportDrugs" readonly="readonly">是</label>
                                    <label><input name="diImportDrugs"  type="radio" value="1" id="inspection3" class="diImportDrugs" readonly="readonly">否</label>
                                </td>
                                <td>包装材质:</td>
                                <td><input type="text" value="" name="diMaterialQuality" id="diMaterialQuality" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td>包装单位：</td>
                                <td><input type="text" value="" name="diBunit" id="diBunit" readonly="readonly"></td>
                                <td>最新零售价:</td>
                                <td><input type="text" value="" name="diNewPrice" id="diNewPrice" readonly="readonly"></td>
                            </tr>
                            <tr>
                                <td>零售价出处：</td>
                                <td><input type="text" value="" name="diRetailPrice" id="diRetailPrice" readonly="readonly"></td>
                                <td>质量层次:</td>
                                <td>
                                    <input style=" height: 25px; width: 160px;" class="c" name="diDqlName" id="diDqlName" readonly="readonly">
                                    </input>
                                </td>
                            </tr>
                            <tr>
                                <td>质量层次说明：</td>
                                <td><input type="text" value="" name="diDqlexplain" id="diDqlexplain" readonly="readonly"></td>
                                <td>有无药品检验报告:</td>
                                <td>
                                    <label><input name="diInspectionReport" type="radio" value="0" id="inspection" class="diInspectionReport" readonly="readonly">有</label>
                                    <label><input name="diInspectionReport" type="radio" value="1" id="inspection1" class="diInspectionReport" readonly="readonly">无</label>
                                </td>
                            </tr>
                            <tr>
                                <td>药品检验报告编号：</td>
                                <td><input type="text" value="" name="diInspectionNumber" id="diInspectionNumber" readonly="readonly"></td>
                                <td>药品检验报告有效期:</td>
                                <td><input type="text" value="" name="diInspectionTerm" id="diInspectionTerm" readonly="readonly" ></td>
                            </tr>
                            <tr>
                                <td>产品说明:</td>
                                <td colspan="4"><textarea rows="3" cols="60" type="radio" value="" name="diDescription" id="diDescription" readonly="readonly"></textarea></td>
                            </tr>
                            <tr>
                                <td>药品交易状态:</td>
                                <td>
                                    <input style=" height: 25px; width: 160px;" name="diTradingStatus" id="diTradingStatus" readonly="readonly">
                                    </input>
                                </td>
                            </tr>
                        </table>
                    </form>
                    <td>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <button type="button" data-dismiss="modal" class="btn btn-primary">关闭</button>
                    </td>
                </div>
                    <div class="modal-footer">
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->


    <!--药品信息导入模态框  模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true">×
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        药品品目导入
                    </h4>
                </div>

                <form action="/myspringboot/inputExcel2" enctype="multipart/form-data" method="post" accept-charset="utf-8">

                <div class="modal-body">
                        下载导入模板文件 <a href="/myspringboot/DrugInformationController/download2">点击下载药品信息导入模板</a>
                        <hr>
                        提示:请下载后在模板文件中录入药品品目信息,在下边的"选择文件"中选择要导入的文件,点击"导入"
                        <br>
                        注意:请下载模板文件后切勿修改excel的单元文件格格式,导入文件单元格格式必须为文本.
                        <input type="file" name="file" accept=".xlsx"><br>
                        <a><button  type="submit" value="" class="btn btn-primary">导入</button></a>
                        <a><button class="btn btn-primary">查看导入失败结果</button></a>
                        <a>
                            <button type="button" data-dismiss="modal" class="btn btn-primary">关闭</button>
                        </a>
                    </div>
                </form>
                <div class="modal-footer">
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
	</body>
</html>
